﻿using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TImSdk
{
    /// <summary>
    /// 文件元素
    /// </summary>
    public class FileElem : Elem
    {
        /// <summary>
        /// 文件所在路径（包含文件名）
        /// </summary>
       [JsonProperty("file_elem_file_path")]
        public string File_Elem_File_Path { get; set; }
        /// <summary>
        /// 文件名，显示的名称。不设置该参数时，kTIMFileElemFileName默认为kTIMFileElemFilePath指定的文件路径中的文件名
        /// </summary>
        [JsonProperty("file_elem_file_name")]
        public string File_Elem_File_Name { get; set; }
        /// <summary>
        ///  文件大小
        /// </summary>
        [JsonProperty("file_elem_file_size")]
        public string File_Elem_File_Size { get; set; }
        /// <summary>
        /// 下载视频时的uuid
        /// </summary>
        [JsonProperty("file_elem_file_id")]
        public string File_Elem_File_Id { get; set; }
        /// <summary>
        ///  下载时用到的businessID
        /// </summary>
        [JsonProperty("file_elem_business_id")]
        public int File_Elem_Business_Id { get; set; }
        /// <summary>
        /// 文件下载flag
        /// </summary>
        [JsonProperty("file_elem_download_flag")]
        public int File_Elem_Download_Flag { get; set; }
        /// <summary>
        /// 文件下载的URL
        /// </summary>
        [JsonProperty("file_elem_url")]
        public string File_Elem_Url { get; set; }
        /// <summary>
        /// 任务ID 
        /// </summary>
        [JsonProperty("file_elem_task_id")]
        public string File_Elem_Task_Id { get; set; }
    }
}
